package edu.chinasoft.dao;


import edu.chinasoft.pojo.Book;

import java.util.List;
import java.util.Map;

public
interface BookDao {
    //单个参数
    Book selectTableById(int id);
    Book selectTableByName(String bookName);
    void insertTable01(Book book);
    void delectTable01(List<Integer> idList);
    void insertTable02(Book[] bookArray);
    void insertTable03(Map<String,Object> map);
    //多个参数
    /*
      步骤1：把多个参数封装到map对象里
      步骤2:map里key的类型是字符串，value类型是Object
     */
    void insertTable04(String bookName,double bookPrice,int bookStore);
    void insertTable05(Map<String,Object> map);
}
